<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Live show</title>
<script type="text/javascript" src="js/featuredcontentglider.js"></script>
<script type="text/javascript" src="js/jquery-1.2.2.pack.js"></script>

<link href="style/featuredcontentglider.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
include("config/config.php");
$lenh = "select malaptop,tenlaptop,concat(soluong,'Cái') as soluong, concat(format(dongia,0),'VND') as dongia,hinh from laptop where NoiBat = 1 order by ngaynhap desc limit 0,4";
$kq = mysql_query($lenh);
?>
<script type="text/javascript">
featuredcontentglider.init({
	gliderid: "canadaprovinces", //ID of main glider container
	contentclass: "glidecontent", //Shared CSS class name of each glider content
	togglerid: "p-select", //ID of toggler container
	remotecontent: "", //Get gliding contents from external file on server? "filename" or "" to disable
	selected: 0, //Default selected content index (0=1st)
	persiststate: false, //Remember last content shown within browser session (true/false)?
	speed: 1000, //Glide animation duration (in milliseconds)
	direction: "downup", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
	autorotate: true, //Auto rotate contents (true/false)?
	autorotateconfig: [1000, 4] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
})
</script>
<div id="canadaprovinces" class="glidecontentwrapper">
<?php
while($row = mysql_fetch_array($kq))
{
	?>
    

<div class="glidecontent">
<img src="laptop/<?php  echo $row[4]; ?>" style="float: left; padding: 5px" width="200" height="175"/>
<font color="#000000">Tên laptop:</font>
<a href="index.php?idlaptop=<?php echo $row[0]; ?>"><?php echo $row[1];?></a><br/><br/>
<!--<font color="#000000">Số lượng:</font><?php echo $row[2]; ?><br/><br/>-->
<font color="#000000">Đơn giá:</font><?php echo $row[3]; ?><br/><br/>
</div>
<?php
}
?>
</div>
<div id="p-select" class="glidecontenttoggler">
<a href="#" class="prev">Prev</a> 
<a href="#" class="toc">Page 1</a>
<a href="#" class="toc">Page 2</a> 
<a href="#" class="toc">Page 3</a>
<a href="#" class="toc">Page 4</a>
<a href="#" class="next">Next</a>
</div>

</body>
</html>